import java.util.Arrays;

public class Demo2 {
    public static void main(String[] args) {
        int[] arr = {1,3,4,2,78,56,34};
        Demo1.heapSort(arr);
        System.out.println(Arrays.toString(arr));
    }
}
